package com.tbynet.jwp.service.provider;

import com.jfinal.plugin.activerecord.Db;
import com.tbynet.jwp.service.CommentService;

public class CommentServiceProvider implements CommentService {

	@Override
	public int count(Object postId) {
		return Db.queryInt("select count(*) from wp_comments where comment_post_ID=?", postId);
	}

}
